package com.happy3w.ssp.schoolmatehome.component.image.action;

import com.happy3w.ssp.schoolmatehome.component.image.Canvas;
import com.happy3w.ssp.schoolmatehome.component.image.DrawAction;
import lombok.RequiredArgsConstructor;

import java.awt.Color;

@RequiredArgsConstructor
public class ColorAction implements DrawAction {
    private final Color color;

    @Override
    public void draw(Canvas canvas) {
        canvas.getG2d().setColor(color);
    }
}
